<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>联系记录管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
	$(document).ready(function() {

	});
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}
</script>
<style type="text/css">
#contentTable th,#contentTable td {
	text-align: center;
}
</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active">
			<a href="javascript:void(0)">联系记录列表</a>
		</li>
	</ul>
	<form:form id="searchForm" modelAttribute="allRecords" action="${ctx}/crm/findcustomer/allRecords/" method="post" class="breadcrumb form-search" style="display:none">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}" />
		<input id="customerId" name="customerId" type="hidden" value="${allRecords.customerId}">
		<ul class="ul-form">
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}" />
	<table id="contentTable" class="table table-striped table-bordered table-condensed" style="table-layout: fixed; text-align: center;">
		<thead>
			<tr>
				<th style="width: 10%">联系方式</th>
				<th style="width: 10%">联系地址</th>
				<th style="width: 70%">联系内容</th>
				<th style="width: 10%">创建人</th>
				<th style="width: 10%">创建时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="allRecords">
				<tr>
					<td>${allRecords.contactWay}</td>
					<td>${allRecords.address}</td>
					<td style="width: 100%; word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" title="${allRecords.content}">${allRecords.content}</td>
					<td>${allRecords.createUser}</td>
					<td>
						<fmt:formatDate value="${allRecords.createDate}" pattern="yyyy-MM-dd HH:mm:ss" />
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<div class="form-actions">
		<input style="margin-left: 100px;" id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)" />
	</div>
</body>
</html>